package com.ruoyi.service;

import com.ruoyi.common.PageResult;
import com.ruoyi.common.Result;
import com.ruoyi.domain.dto.FileDTO;
import com.ruoyi.domain.pojo.FilePO;

/**
 * @Classname FileService
 * @Description TODO
 * @Date 2025/3/19 14:01
 * @Created by xxx
 */
public interface FileService {
    boolean upload(FileDTO fileDTO);

    PageResult list(FileDTO fileDTO);

    boolean collections(Integer id, Long userId);

    boolean delete(Integer id, Long userId);

    boolean readDelete(Integer id, Long userId);

    boolean clean(Long userId);

    FilePO download(Integer id, Long userId);

    Result getDetail(Integer id, Long userId);

    Result save(Integer id, Long userId, String minutes);

    Result redo(Integer id, Long userId);
}
